<?php

namespace App\Http\Controllers\Site\Custom;

use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\B2BProject\Site\HelperControllerBuildTrait;
class AccountHomeController extends Controller
{
    use HelperControllerBuildTrait;
    public function getIndex()
    {
        $member = \Auth::user();

        $class = $member->class == 1 ? 'provider' : 'purchaser';

        return view("host/custom/$class/account-home/home")->with('member', $member);
    }
}
